package com.zhongkun.datahome.service.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 家庭与数字资产关系对象 house_assets_relation
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
@Data
public class HouseAssetsRelation extends BaseEntity {
    @ApiModelProperty("房产id")
    private Long houseId;

    @ApiModelProperty("资产id")
    private Long assetsId;

    public static HouseAssetsRelation of(Long houseId, Long assetsId) {
        HouseAssetsRelation relation = new HouseAssetsRelation();
        relation.setHouseId(houseId);
        relation.setAssetsId(assetsId);
        return relation;
    }
}
